#!/bin/sh
CMD_NAME=$(basename $0)

if [ $# -lt 1 ]
then
    echo "${CMD_NAME} [pid]"
    exit
fi

PID=$1
watch -n 1 pstack ${PID}

